package study.thread;

public class ThreadDemo {

	public static void main(String[] args) {

		MyThreadDemo mt = new MyThreadDemo();
		mt.start();
		
		for (int i = 0; i < 50; i++)
	           System.out.println ("i = " + i + ", i * i = " + i * i);
	}
	

}

class MyThreadDemo extends Thread{
	public  void run(){
		for (int count = 1,row = 1; row < 20 ; row++,count++) {
			for (int i = 0; i < count; i++) {
				System.out.print("*");
			}
			System.out.println();
		}
	}
	
}